<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>Insert title here</title>
</head>
<body>
登录成功：<span th:text="${nickName}"></span>!
<a href="/logout">退出</a><br/>
当前用户角色:<br/>
<tr th:each="role : ${roles}">
    角色名称:<td th:text="${role.roleName}"></td>
    <br/>
</tr>
当前用户权限:<br/>
<tr th:each="permission : ${userPermission}">
    权限标记: <td th:text="${permission.permissionTag}"></td>
    资源名称:<td th:text="${permission.resourceName}"></td>
    资源Url:<td th:text="${permission.resourceUrl}"></td>
    <br/>
</tr>
所有资源列表：<br/>
<tr th:each="permission : ${permissions}">
    权限名:<td th:text="${permission.permissionName}"></td>
    权限标记: <td th:text="${permission.permissionTag}"></td>
    <a th:href="${permission.resourceUrl}">
        <span th:text="${permission.resourceName}">资源名称</span>
    </a>
    <br/>
</tr>
</body>
</html>